package com.moon.dao;

import com.moon.entity.TAuctionItem;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TAuctionItemMapper extends Mapper<TAuctionItem> {
    @Select("SELECT * " +
            "FROM t_auction_item " +
            "WHERE buyer_id = #{userId}")
    List<TAuctionItem> selectTAuctionItemsByBuyerId(Long userId);
}